package com.ls.product.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description
 * @Author konglz
 * @Data 2023/5/3 11:44
 */
@Data
public class PageProductDTO {

    private Integer currentPage;

    private Integer pageSize;

    @ApiModelProperty("名称")
    private String productName;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("标题")
//    private String caption;

    public Integer getPageSize() {
        return pageSize == null ? 3 : pageSize;
    }

    public Integer getCurrentPage() {
        return currentPage == null ? 1 : currentPage;
    }
}
